<?xml version="1.0" encoding="UTF-8"?>

<!--=====================================================================
Example Response for GetResult operation request which contains filters for offering and observedProperty. The response contains a template containing the observation metadata as well as information about the type and structure of the result elements which will be returned in later GetResult responses.


In this example, the sequence of operations for retrieving results is as follows:
1. GetResultTemplate1.xml request is sent to SOS.
2. GetResultTemplate1_response.xml is returned from SOS.
3. GetResult1.xml is sent to SOS
4. GetResult1_response is returned from SOS
=======================================================================-->
<sos:GetResultTemplateResponse xmlns="http://www.opengis.net/sos/2.0" xmlns:sos="http://www.opengis.net/sos/2.0" xmlns:swe="http://www.opengis.net/swe/2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sos/2.0
http://schemas.opengis.net/sos/2.0.0/sosGetResultTemplate.xsd">


<!--information about encoding of results-->
	<resultEncoding>
			<!--results are encoded as text with token- and blockseperator as specified here-->
			<swe:TextEncoding tokenSeparator="," blockSeparator="@@"/>
			
	</resultEncoding>
	<!--information about structure of observation results-->
	<resultStructure>
	
		<!-- result is of type swe:DataArray with two elements (phenomenonTime and waterlevel; see SweCommon Data Encoding specification for more information-->
		<swe:DataArray>
			<swe:elementCount>
				<swe:Count/>
			</swe:elementCount>
			<swe:elementType name="tupleDefinition">
				<swe:DataRecord>
					<swe:field name="phenomenonTime">
						<swe:Time definition="http://www.opengis.net/sos/2.0/observation/phenomenonTime">
							<swe:uom code="ms"/>
						</swe:Time>
					</swe:field>
					<swe:field name="waterlevel">
						<swe:Quantity definition="urn:ogc:def:phenomenon:OGC:water_level">
							<swe:uom code="cm"/>
						</swe:Quantity>
					</swe:field>
				</swe:DataRecord>
			</swe:elementType>
		</swe:DataArray>
	</resultStructure>
	
	
</sos:GetResultTemplateResponse>
